package com.ibeeking.gmc.global.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ibeeking.found.common.base.BaseDO;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName ShortUrlDO
 * @Description 短链接映射表
 * @Author ibeeking
 * @Date 2020-12-02 16:06
 **/
@Data
@TableName("gmc_short_url")
public class ShortUrlDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Integer tenantId;

    /**
     * 页面ID，唯一识别id
     */
    @TableField(value = "page_id")
    private String pageId;

    /**
     * 页面类型；0=系统页面；1=功能页面；2=商品页面；3=活动页面；4=券类推广页面；5=组合券包
     */
    @TableField(value = "page_type")
    private Integer pageType;
    /**
     * 页面名称
     */
    @TableField(value = "page_name")
    private String pageName;

    /**
     * 页面ID，唯一识别id
     */
    @TableField(value = "shorter_key")
    private String shorterKey;

    /**
     * 相对路径
     */
    @TableField(value = "full_path")
    private String fullPath;

    /**
     * 是否长期有效；1=长期；2=否
     */
    @TableField(value = "has_expired")
    private Integer hasExpired;

    /**
     * 有效期
     */
    @TableField(value = "expire_time")
    private LocalDateTime expireTime;

    /**
     * 相对路径
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "create_by")
    private Long createBy;

    @TableField(value = "modify_time")
    private LocalDateTime modifyTime;

    @TableField(value = "modify_by")
    private Long modifyBy;

}
